#ifndef __OLED_H
#define __OLED_H
#include <stdint.h>

#define I2C_1_INST                 I2C1

/*************************示例程序**************************
    OLED_Init();
    OLED_CLS();
    OLED_ShowStr(10,0,(unsigned char*) "HELLO WORLD",2);
    OLED_ShowStr(4,2,(unsigned char*) "LP-MSPM0G3507",2);
    OLED_ShowStr(0,4,(unsigned char*) "DATE 2024-4-14",2);
***********************************************************/


void OLED_I2C_Init(void);

int I2C_WriteByte(uint8_t addr,uint8_t data);

void WriteCmd(unsigned char I2C_Command);

void WriteData(unsigned char I2C_Data);

void OLED_Init(void);

void OLED_SetPos(unsigned char x,unsigned char y);

void OLED_Fill(unsigned char Fill_Data);

void OLED_CLS(void);

void OLED_ON(void);

void OLED_OFF(void);

void OLED_ShowStr(unsigned char x,unsigned char y,unsigned char ch[],unsigned char TextSize);

void OLED_ShowCN(unsigned char x,unsigned char y,unsigned char N);

void OLED_ShowNUM(unsigned char x,unsigned char y,const int Num);

void OLED_ShowBMP(unsigned char x0,unsigned char y0,unsigned char x1,unsigned char y1,unsigned char BMP[]);

#endif




